<template>
  <!-- 添加用户 -->
  <div>
    <el-input v-model="userQuery" placeholder="请输入内容" class="input-with-select">
      <el-button slot="append" icon="el-icon-search" @click.native="searchUserIofo" />
    </el-input>
    <el-button type="primary" @click.native="$emit('addUser-to')">添加用户</el-button>
  </div>
</template>

<script>
export default {
  name: 'AddUserSub',
  data() {
    return {
      // 搜索字符
      userQuery: ''
    }
  },

  created() {

  },

  methods: {
    searchUserIofo() {
      this.$emit('search-userIofo', this.userQuery)
    }
  }
}
</script>

<style scoped lang='scss'>
.input-with-select {
    width: 360px;
    margin-bottom: 16px;
    margin-right: 20px;
  }
</style>
